package com.zhouxiaoge.枚举;

/**
 * @author 周明阳
 * mail:gqzmy@outlook.com
 * 时间:2018-04-23 17:44
 */

public class EnumSingleton {

    private EnumSingleton() {

    }

    public static EnumSingleton getInstance() {
        return Singleton.INSTANCE.getInstance();
    }

    private static enum Singleton {
        INSTANCE;
        private EnumSingleton singleton;

        private Singleton() {
            singleton = new EnumSingleton();
        }

        public EnumSingleton getInstance() {
            return singleton;
        }
    }

}
